package com.zhipin.hackthon;

/**
 * 权益使用类
 * 表示一个城市职位占用哪个权益
 */
public class RightsUse {

    // 职位城市
    private String city;

    // 占用的权益
    private Rights rights;

    public RightsUse(String city, Rights rights) {
        this.city = city;
        this.rights = rights;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Rights getRights() {
        return rights;
    }

    @Override
    public String toString() {
        return "(" + city + "," + rights.getName() + ")";
    }
}
